import React, { Component } from 'react'
import { Icon } from 'react-vant';
import ViewRouter from '../utils/viewrouter';
const Style = {
    "background":"red",
    "height":"40px"
}
 class Header extends Component {
  goBack () {
    this.props.withrouter.routerprops.history.go(-1)
    // console.log( this.props.history);
    // this.props.history.go(-1)
      
  }
  render() {
    return (
      <div style={Style}>
            <Icon name="arrow-left" size="25px" onClick={this.goBack.bind(this)}/>
      </div>
    )
  }
}

export default   ViewRouter(Header)